1 2 3 4 5 6 7 8 9 10 11 12
| package lianxi;
import java.util.*;
public class lianxix { public static void main(String[] args) { int a = 10; double b = 10.10; System.out.printf("Row 1 : [%d, %f]\n", a, b); System.out.format("Row 2 : [%d, %f]\n", a, b); } }
|